<!DOCTYPE html>
<html ng-app="gurpoApp">
<head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<title>Configuración De Grupos</title>
	
		<link rel="stylesheet" type="text/css" href="../../css/smart_icons_styles.css">
	  	<link rel="stylesheet" type="text/css" href="../../css/smart_menu.css">
	  	<link rel="stylesheet" type="text/css" href="../../css/smart_general.css">
	  	<link rel="stylesheet" type="text/css" href="../../css/smart_tabladatos.css">
	  	
	  	<link rel="stylesheet" type="text/css" href="../../js/ngdialog-0.2.3/ngDialog.css">
	  	<link rel="stylesheet" type="text/css" href="../../js/ngdialog-0.2.3/ngDialog-theme-default.css">
		<link rel="stylesheet" type="text/css" href="../../js/ngdialog-0.2.3/ngDialog-theme-plain.css">
	  	
        <!-- Importarmos angular JS -->
        <script src="../../js/jquery/jquery-1.8.3.min.js"></script>
    	<script type="text/javascript" src="../../js/main/template.js"></script>
    	<script src="../../js/angular-1.4.7/angular.min.js"></script>
    	<script src="../../js/ngdialog-0.2.3/ngDialog.min.js"></script> 
    	
    	<!-- importar script para las funciones del formulario -->
    	<script type="text/javascript" src="script/gurpo_app.js"></script>
    	<script type="text/javascript" src="script/gurpo_services.js"></script>
		<script type="text/javascript" src="script/gurpo_controller.js"></script>
		
</head>
</head>
<body ng-controller="gurpoCtrl">
			<div class="col-md-10" id="frame">
		<div class="panel panel-primary ng-scope">
   
		    <div class="panel-heading">Configuración De Grupos
		 	<a href="#"><span class="img"><img src="../../imagene/eliminar.png" style="float:right;"  ng-click="eliminar(gurpo)" title = "Eliminar gurpos"></span></a>
		 	<a href="#"><span class="img"><img src="../../imagene/limpiar.png" style="float:right;"   ng-click="limpiar(gurpo)" title= "Limpiar"></span></a>
		 	<a href="#"><span class="img"><img src="../../imagene/consultar.png" style="float:right;" ng-click="consultar(gurpo)" title= "Consultar gurpo"></span></a>
		 	<a href="#"><span class="img"><img src="../../imagene/guardar.png" style="float:right;"   ng-click="grabar(gurpo)" title= "Guardar gurpo"></span></a>
		  </div>
		  <div class="panel-body">
		   <input id="scgurpo" type="text" class="texto" ng-model="gurpo.scgurpo" style = "display:none;">
               
                <div class = "alert alert-danger alert-dismissable" id="messageBox">
                	<h4>{{titulo_mensajes}}</h4> {{descripcion_mensajes}}
                	<a href="#"><span class="imagen"><img src="../../imagene/bombilla-incandescente32.png"  ng-click="showModal()"></span></a>
				</div>
					<div class="col-md-10 panel panel-primary ng-scope"  style="height: 150px;">
						<table style="width:100%; vertical-align: middle;"">
							<tr style = "vertical-align: middle;">
								<td width="25%" height="100%">
									<label>Institución*</label><br/>
									<select  id="dspais" class="seleccion" ng-model="gurpo.pais" ng-options="option.copais as option.dspais for option in paises">
									  <option value="Seleccionar">Seleccionar</option>
									</select>
								</td>	
								<td>
									<label class="" >Sede*</label><br/>	
									<select class="seleccion" id="dssede" style="width:240px;" ng-model="gurpo.departamento">
									  <option value="Seleccionar">Seleccionar</option>
									</select>
								</td>
								<td>
									<label class="" >Jornadas*</label><br/>	
									<select class="seleccion" id="dsmunicipio" style="width:240px;" ng-model="gurpo.municipio" >
									  <option value="Seleccionar">Seleccionar</option>
									</select>
								</td>
								<td>
									<label class="" >Grados*</label><br/>	
									<select class="seleccion" id="dsnombreoficial" style="width:240px;" ng-model="gurpo.nombreoficial" >
									  <option value="Seleccionar">Seleccionar</option>
									</select>
								</td>
							</tr>							
							<tr>
								<td>
									<label class="" for="gurpo">Código*</label><br/>	
									<input id="dsgurpo" type="text" style="width:240pxx;"  ng-model="gurpo.gurpo"class="texto">
								</td>
									
								<td>
									<label class="" for="nit">Descripción*</label><br/>	
									<input id="dsnit" type="text" style="width:240px;" ng-model="gurpo.nit" class="texto">
								</td>
								
						</table>
					</div>
					<div class="container">				
					<table class = "tabledatos">
							<thead>
								<tr>
								   
									<th style="width: 150px;" scope="col" >Institución*</th>
									<th style="width: 150px;" scope="col" >Sede</th>
									 <th style="width: 250px;" scope="col" >Jornadas</th>
									 <th style="width: 350px;" scope="col" >Grados</th>
									  <th style="width: 150px;" scope="col" >Código</th>
									 <th style="width: 150px;" scope="col" >Descripción</th>
									 <th style="width: 150px;" scope="col" >Acción</th>
									
								</tr>
							</thead>
							<tbody class="tbody">
								<tr ng-show="gurpo.length == 0">
									<th colspan="5" style="text-align:center;">
										No se encontraron gurpo seleccionadas
									</th>
								</tr>
							
								<tr ng-repeat="d in gurpo | orderBy : 'dsgurpo'">

									    <td style = "display:none;">
										  {{d.scgurpo}}
										</td>
										<td style="width: 150px;">
										  {{d.dsinstitución}}
										</td>
										<td style="width: 150px;">
										  {{d.dssede}}
										</td>
										<td style ="width: 250px;">
										  {{d.dsjornadas}}
										</td>	
										<td style="width: 350px;">
										  {{d.dsgrados}}
										</td>
										 
										<td style="width: 150px;">
										  {{d.dscódigo}}
										</td>
										<td style="width: 350px;">
										  {{d.dsdescripción}}
										</td>		
										
										<td class="botonera-table" style="width: 50px;">
										<a href="#"><span class="img"><img src="../../imagene/verifique-signo24.png" style="float:center;" ng-click="seleccionar(d)" title ="Editar"></span></a>
										</td>						
								</tr>
							</tbody>
						</table>
						</div>
  
  </div>
</div> 
</div>
</body>
</html>